/*stylelint-disable*/
@prefixCls: ~"c7ncd-excute-details";

.@{prefixCls} {
  &-box + &-box {
    margin-top: 20px;
  }
  &-box {
    border-radius: 4px;
    padding: 16px 12px;
    position: relative;
    header {
      display: flex;
      align-items: center;
      span {
        &:first-of-type {
          width: 2px;
          height: 12px;
          display: block;
          border-radius: 2px;
        }
        &:nth-of-type(2) {
          font-size: 14px;
          font-weight: 500;
          color: var(--text-color);
          margin-left: 5px;
        }
      }
    }
    main {
      margin-top: 12px;
    }
  }
  &-unitTest {
    background: #edf6f7;
    header {
      span {
        &:first-of-type {
          background: #1baab1;
        }
      }
    }
    &-section {
      background: #fff;
      position: relative;
      &-button {
        position: absolute;
        right: 10px;
        top: 10px;
        border-radius: 4px !important;
        width: 24px !important;
        height: 24px !important;
        border-color: rgba(83, 101, 234, 0.08);
        background-color: rgba(83, 101, 234, 0.08) !important;
        display: inline-block;
        box-sizing: border-box;
        height: 32px;
        line-height: 0;
        padding: 0 12px;
        border-radius: 4px;
        border-width: 1px;
        border-style: solid;
        color: #5365ea;
        border: none;
        background-color: transparent;
        white-space: nowrap;
        background-clip: padding-box;
      }
      &-title {
        font-size: 13px;
        font-weight: 500;
        color: rgba(15, 19, 88, 0.85);
      }
      &-group {
        display: flex;
        align-items: center;
        margin-top: 12px;
        &-item + &-item {
          border-left: 1px solid #d9e6f2;
        }
        &-item {
          flex: 1;
          display: flex;
          flex-direction: column;
          text-align: center;
          > span {
            &:first-of-type {
              font-size: 20px;
              font-weight: bold;
              color: #0f1358;
            }
            &:nth-of-type(2) {
              font-size: 12px;
              font-weight: 400;
              color: rgba(15, 19, 88, 0.65);
              margin-top: 2px;
            }
          }
        }
      }
      footer {
        padding: 11px 0;
        text-align: center;
        border-top: 1px solid #e7efff;
        > span {
          &:first-of-type {
            font-size: 12px;
            font-weight: 400;
            color: rgba(15, 19, 88, 0.65);
          }
          &:nth-of-type(2) {
            font-size: 18px;
            font-weight: bold;
            color: #1fc2bb;
          }
        }
      }
      main {
        padding: 12px 10px;
      }
    }
  }
  &-unitTest + &-unitTest {
    margin-top: 12px;
  }

  &-sonar {
    background: rgba(246, 249, 255, 1);
    position: relative;
    header {
      span {
        &:first-of-type {
          background: #ffa862;
        }
      }
    }
    &-button {
      position: absolute;
      right: 10px;
      top: 10px;
      border-radius: 4px !important;
      width: 24px !important;
      height: 24px !important;
      border-color: rgba(83, 101, 234, 0.08);
      background-color: rgba(83, 101, 234, 0.08) !important;
      display: inline-block;
      box-sizing: border-box;
      height: 32px;
      line-height: 0;
      padding: 0 12px;
      border-radius: 4px;
      border-width: 1px;
      border-style: solid;
      color: #5365ea;
      border: none;
      background-color: transparent;
      white-space: nowrap;
      background-clip: padding-box;
    }
    &-section {
      background: #fff;
      border: 1px solid #e7efff;
      position: relative;
      &-group {
        display: flex;
        align-items: center;
        &-item + &-item {
          border-left: 1px solid #d9e6f2;
        }
        &-item {
          flex: 1;
          display: flex;
          flex-direction: column;
          text-align: center;
          > span {
            > a {
              color: #f76776;
            }
            &:first-of-type {
              font-size: 20px;
              font-weight: bold;
            }
            &:nth-of-type(2) {
              font-size: 12px;
              font-weight: 400;
              color: rgba(15, 19, 88, 0.65);
              margin-top: 2px;
            }
          }
        }
      }
      footer {
        padding: 11px 0;
        text-align: center;
        border-top: 1px solid #e7efff;
        > span {
          &:first-of-type {
            font-size: 12px;
            font-weight: 400;
            color: rgba(15, 19, 88, 0.65);
          }
          &:nth-of-type(2) {
            font-size: 13px;
            font-weight: 400;
            color: #0f1358;
          }
        }
      }
      main {
        padding: 12px 10px;
        margin-top: 0;
      }
      &-header {
        padding-left: 12px;
        margin-top: 10px;
        span:nth-child(1) {
          color: rgba(15, 19, 88, 0.65);
          font-size: 12px;
        }
        span:nth-child(2) {
          font-size: 13px;
          font-weight: 500;
          color: rgba(15,19,88,0.85);
        }
      }
      &-footer {
        padding: 12px !important;
        text-align: left !important;
        .c7ncd-status-tag {
          width: 33.6px !important;
          height: 19.2px !important;
          scale: 0.833 !important;
          line-height: 19.2px !important;
        }
        &-top {
          margin-bottom: 14px;
          .title {
            font-size: 13px;
            font-weight: 500;
            color: rgba(15,19,88,0.85);
            display: inline-block;
            margin-right: 4px;
          }
          .statusTag-enable {
            color: rgba(31, 194, 187, 1) !important;
            background-color: rgb(230, 255, 251) !important;
            border: 1px solid #87E8DE !important;
          }
          .statusTag-disable {
            color: rgba(0,0,0,0.35) !important;
            background: #F8F8F8 !important;
            border: 1px solid rgba(0,0,0,0.2) !important;
          }
        }
        &-bottom {
          .c7ncd-status-tag {
            position: relative;
            left: -2px;
          }
        }
        &-bottom-success {
            .icon-check_circle {
              font-size: 18px;
              color: rgba(31, 194, 187, 1);
              position: relative;
              top: -1px;
              margin-left: 12px;
              margin-right: 4px;
            }
        }
        &-bottom-failed {
          display: flex;
          justify-content: flex-start;
          flex-wrap: nowrap;
          .failed-list {
            margin-left: 12px;
            &-item {
              line-height: 20px;
              margin-bottom: 10px;
              &-top {
                font-size: 13px;
                color: rgba(15, 19, 88, 1);
                margin-bottom: 5px;
                .icon {
                  font-size: 18px;
                  position: relative;
                  top: -2px;
                  margin-right: 4px;
                }
                .icon-cancel {
                  color: rgba(247, 103, 118, 1);
                }
                .icon-check_circle {
                  color: #00bfa5;
                }
              }
              &-bottom {
                font-size: 12px;
                color: rgba(15, 19, 88, 0.65);
                .num {
                  color: rgba(247, 103, 118, 1);
                  font-size: 18px;
                  font-weight: bold;
                  margin-left: 4px;
                }
              }
              &-item:last-child {
                margin-bottom: 0;
              }
            }
          }
        }
      }
    }
  }

  &-pipeline {
    background: #f6f9ff;
    header {
      span {
        &:first-of-type {
          background: #5365ea;
        }
      }
    }
    &-section {
      background: #fff;
      border: 1px solid #e7efff;
      position: relative;
      padding: 12px;
      display: flex;
      flex-direction: column;
      &-button {
        position: absolute;
        right: 10px;
        top: 10px;
        border-radius: 4px !important;
        width: 24px !important;
        height: 24px !important;
        border-color: rgba(83, 101, 234, 0.08);
        background-color: rgba(83, 101, 234, 0.08) !important;
        display: inline-block;
        box-sizing: border-box;
        height: 32px;
        line-height: 0;
        padding: 0 12px;
        border-radius: 4px;
        border-width: 1px;
        border-style: solid;
        color: #5365ea;
        border: none;
        background-color: transparent;
        white-space: nowrap;
        background-clip: padding-box;
      }
      &-item + &-item {
        margin-top: 12px;
      }
      &-item {
        display: flex;
        > span {
          font-size: 13px;
          font-weight: 400;
          text-align: left;
          word-break: break-all;
          > span {
            display: block;
          }
          &:first-of-type {
            min-width: 91px;
            display: block;
            color: rgba(15, 19, 88, 0.65);
          }
          &:nth-of-type(2) {
            color: #0f1358;
          }
        }
      }
    }
  }

  &-blank-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    &-desc {
      font-size: 14px;
      text-align: center;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(15, 19, 88, 0.65);
      margin-top: 23px;
    }
  }
}
